//
//  LayoutCellBase.h
//  ebook
//
//  Created by 吴超飞 on 2017/3/14.
//  Copyright © 2017年 Moton. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "StoreBookModel.h"
#import "LayoutType.h"

#define TitleHeight 45
#define LayoutSpaceOut (MTScreenW * 0.05) //最两边的边距
#define kCellId @"cellid"

@class LayoutCellBase;
@protocol LayoutCellBaseDelegate <NSObject>

-(void)layoutCellBase:(LayoutCellBase *)cell moreBtnClick:(UIButton *)btn;//点击更多
-(void)layoutCellBase:(LayoutCellBase *)cell didSelectModel:(StoreBookModel *)model;//点击某本书

@end


@interface LayoutCellBase : UITableViewCell

@property (nonatomic, retain) LayoutType *layOutType;
@property (nonatomic, weak  ) id<LayoutCellBaseDelegate> delegate;

@property (nonatomic, strong) UILabel *titleLabel;
@property (nonatomic, strong) UIButton *moreBtn;
@property (nonatomic, strong) NSArray<StoreBookModel *> *dataArray;
@property (nonatomic, assign) int bookCount;

-(void)reloadData;

//获取视图的高度
+(float)viewHeight:(LayoutType *)layoutType;

@end
